/**
 * Index Contract Api
 * 企业合同接口
 *
 * @date 2021-08-03
 * @author 逗号米
 */

import http from '@/api'

/**
 * 前缀
 *
 * @type {string}
 */
const prefix = `${http}/cms/company/contract`


/**
 * 首页
 *
 * @type {string}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 显示
 *
 * @param {number} id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`